<%@ page language="java" pageEncoding="UTF-8"%>
<div class="container">
	<div class="input-group" style="width: 50%;">
		<input type="text" name="keyword" class="form-control" ng-model="keyword">
		<span class="input-group-btn">
			<a ng-href="#/search/blog?keyword={{keyword}}" class="btn btn-default" type="button">
				<i class="glyphicon glyphicon-search"></i> 搜索
			</a>
		</span>
	</div>
	<br/>
	<div class="panel panel-default">
		<div class="panel-body">
			<div ng-show="result==null || result.data==null || result.data.length==0">
				<div class="alert alert-info">没有结果</div>
			</div>
			
			<div ng-repeat="blog in result.data">
			
				<a ng-href="#/blog/{{blog.id}}" title="{{blog.title | textOnly}}">
					<highlight keyword="keyword">
						{{blog.title | summary:80}}
					</highlight>
				</a>
				
				<div style="color: #777;margin-top:20px; margin-left: 10px;">
					<highlight keyword="keyword">
						{{blog.content | textOnly | summary:300}}
					</highlight>
				</div>
				
				<div style="color: #777;margin-top:20px; margin-left: 10px;">
					<span style="margin-right: 10px;" message="'创建于{{blog.create_time | formatDate}}'" tooltip>
						<i class="glyphicon glyphicon-time"></i> {{blog.create_time | formatDate:true}}
					</span>
				</div>
				<hr/>
			</div>
			
			<paginate page-count="result.page_count" sum="result.data_sum" pn="result.pn" click="find"></paginate>
		</div>
	</div>
</div>
